﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CashFlow_rpt.aspx.cs" Inherits="MixScriptWeb.Accounting.ReportFinnance.CashFlow_rpt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Styles/AccReportStyle.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.printArea.js" type="text/javascript"></script>
    <script src="../../Scripts/table2CSV.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#btnPrint').click(function () {
                $("div.printArea").printArea();
            });
            $('#btnExport').click(function () {
                var $table = $("#table-ui")
                alert($table);
                var csv = $table.table2CSV({ delivery: 'value' });
                window.location.href = 'data:text/csv;charset=UTF-8,'
                        + encodeURIComponent(csv);
            });
        });
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="printTools">
        <table width="100%">
            <tr>
                <td style="width: 50%">
                </td>
                <td>
                </td>
                <td align="right" style="width: 30px">
                    <asp:Button runat="server" Text="Refresh" ID="btnRefresh" />
                </td>
                <td align="right" style="width: 30px">
                    <input type="button" value="Export" id="btnExport" class="btnExport" />
                </td>
                <td align="right" style="width: 30px">
                    <input type="button" value="Print" id="btnPrint" class="btnPrint" />
                </td>
            </tr>
        </table>
    </div>
    <div class="printArea">
        <table width="100%">
            <tr>
                <td colspan="3" align="center">
                    Cash Flow
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center">
                    Period :
                    <asp:Label ID="lblPeriod" runat="server" Text="" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
        <table width="100%">
        </table>
    </div>
    </form>
</body>
</html>
